Skip to content

Implement semver tags in CI/CD workflows#76

Closed
gsilvapt wants to merge 3 commits intosurface-security:mainfrom
gsilvapt:main
Closed

Implement semver tags in CI/CD workflows#76
gsilvapt wants to merge 3 commits intosurface-security:mainfrom
gsilvapt:main

Conversation

@gsilvapt
Copy link
Copy Markdown
Contributor

The ultimate purpose of this PR is to convert the current CI/CD workflows to leverage git tags. For dev builds, it will take the latest one, increment a patch level and append -dev and the runner id. The final build, that only runs when a new tag is created, uses the tag that triggered the workflow to build the temporary image and publish that one. Added a default to use 1.0.0 if there's no tag created. If this PR gets approved, creating 1.0.0 should solve this and things should go along just fine.

To view the workflow running, check my fork:

In addition, since I was on it, I moved some files around, renamed others and tried to make things more easy to work with (no offense 🙏 ).

misc: refactor actions

- Remove unused `-dev` workflows.
- Rename files for better readability
- Changes workflows so that:
    - Each PR will take the highest tag from `git` and increment a patch
      level, a runner id, and a `-dev` after it, so that no image can be the same.
    - To publish a new artifact, a new tag has to be pushed.
@gsilvapt gsilvapt added the enhancement New feature or request label Jan 23, 2023
@gsilvapt gsilvapt closed this Jan 24, 2023
@gsilvapt gsilvapt reopened this Jan 24, 2023
@gsilvapt
Copy link
Copy Markdown
Contributor Author

Superseded by #77 because this PR comes from a fork a the tokens are misbehaving (which kind of makes sense).

@gsilvapt gsilvapt closed this Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant